# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Paul Mattal <pjmattal@elys.com>

pkgname=hexedit
pkgver=1.6
pkgrel=1
pkgdesc="View and edit files in hexadecimal or in ASCII"
arch=('loong64' 'x86_64')
url="http://rigaux.org/hexedit.html"
license=('GPL')
depends=('ncurses')
options=(debug)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pixel/hexedit/archive/${pkgver}.tar.gz")
sha256sums=('598906131934f88003a6a937fab10542686ce5f661134bc336053e978c4baae3')

build() {
  cd "${pkgname}-${pkgver}"
  ./autogen.sh
  ./configure
  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make prefix="${pkgdir}/usr" install
}
